package org.tuoren.official.domain.vo;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import org.tuoren.common.excel.annotation.ExcelDictFormat;
import org.tuoren.common.excel.convert.ExcelDictConvert;
import org.tuoren.official.domain.TArea;

import java.io.Serial;
import java.io.Serializable;



/**
 * 地区信息维护视图对象 t_area
 *
 * @author Lion Li
 * @since 2024-11-26
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = TArea.class)
public class TAreaVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @ExcelProperty(value = "主键")
    private Long id;

    /**
     * 地区名称
     */
    @ExcelProperty(value = "地区名称")
    private String areaName;

    /**
     * 地区类型（0：国内，1：国际）
     */
    @ExcelProperty(value = "地区类型", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "0=：国内，1：国际")
    private String areaType;


}
